package com.hrbxlh.dao;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

@Repository
public interface ProblemDao {
	
	/**
	 * @description 查询问题列表
	 * @return 
	 * @throws Exception
	 */
	public List<Map<String,Object>> getAllProblemList(Map<String, Object> paramMap) throws Exception;

	List<Map<String,Object>> getAllProblemListOther(Map<String, Object> paramMap) throws Exception;

	/**
	 * @description 查询问题详情
	 * @return 
	 * @throws Exception
	 */
	public Map<String,Object> getProblemDetail(Map<String, Object> paramMap) throws Exception;
	
	/**
	 * 提问问题。
	 * @throws IOException
	 */
	public boolean putProblem(Map<String,Object> paramMap) throws Exception;
	
	/**
	 * 向问题表中插入当前问题回答的个数。
	 * @throws IOException
	 */
	public boolean saveProblem(Map<String,Object> paramMap) throws Exception;


}
